package com.wy.leetCode;

import java.util.HashSet;
import java.util.TreeSet;

/**
 * @author HelloWorld
 * @create 2021/9/26 7:53
 * @email 154803771@qq.com
 */
public class TestSetDelete {
    public static void main(String[] args) {
        TreeSet<String> treeSet = new TreeSet<>();
        treeSet.add("wy");
        treeSet.add("155");
        System.out.println(treeSet.toString());
        String x = "wy";
        treeSet.stream().distinct().forEach(s -> System.out.println(s));
        System.out.println(treeSet.toString());

    }
}
